package com.qyhl.module_practice.activity;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeAcitivityBean;

import java.util.List;

public class PracticeActPresenter implements PracticeActContract.PracticeActPresenter {
    private PracticeActContract.PracticeActView mView;
    private PracticeActModel mModel;

    PracticeActPresenter(PracticeActContract.PracticeActView mView) {
        this.mView = mView;
        this.mModel = new PracticeActModel(this);
    }

    @Override
    public void getStreetList(String streetId, String page, String userName) {
        mModel.getStreetList(streetId, page, userName);
    }

    @Override
    public void getList(String page, String status, String keyword, String type) {
        mModel.getList(page, status, keyword,type);
    }

    @Override
    public void getOrgList(String orgId, String page) {
        mModel.getOrgList(orgId, page);
    }

    @Override
    public void setList(List<PracticeAcitivityBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
